home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / uasm.zip / STDIO.H < prev    next >
Text File  |  1986-01-16  |  1KB  |  51 lines

  1. /*    standard i/o header file for c86
  2. */
  3.  
  4. #ifndef    _stdioh    
  5.  
  6. #ifdef _C86_BIG
  7. #define NULL (0L)
  8. #else
  9. #define NULL 0
  10. #endif
  11.  
  12. #define EOF (-1)    /* standard end of file */
  13. #define EOS '\0'    /* standard end of string */
  14. #define AREAD 0        /* ascii read */
  15. #define AWRITE 1    /* ascii write */
  16. #define AUPDATE 2    /* ascii update (take care with this one) */
  17. #define BREAD 4        /* binary update */
  18. #define BWRITE 5    /* binary write */
  19. #define BUPDATE 6    /* binary update */
  20.  
  21. #define SEEK_CUR 1    /* seek rel to current */
  22. #define SEEK_END 2    /* seek rel to end */
  23. #define SEEK_SET 0    /* seek absolute */
  24.  
  25. /*    This is the max no. of files that the run-time allows
  26.     you to have open at one time. The operating system
  27.     also imposes additional constraints.
  28. */
  29. #define SYS_OPEN  32
  30.  
  31. typedef char FILE;
  32.  
  33. #define getchar() fgetc(stdin)
  34. #define getc(x) fgetc(x)
  35. #define putchar(x) fputc(x,stdout)
  36. #define putc(x,y) fputc(x,y)
  37. #define ungetch(c) ungetc(c,stdin)
  38.  
  39. extern FILE *stdin, *stdout, *stderr;
  40.  
  41. extern FILE *fopen(), *freopen();
  42. extern long ltell(), lseek(), ftell(), fseek();
  43. extern char *gets(), *fgets();
  44.  
  45. #endif
  46.  
  47. #define _stdioh
  48.  
  49. /*    end of standard header file
  50. */
  51.